﻿using LinqToBing.Bing.Wrapper.ExtensionMethods;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using LinqToBing.Bing.Wrapper;
using LinqToBing.Bing.Wrapper.Enums;
using System.Collections.Generic;
using System.Text;

namespace LinqToBing.Bing.Test
{
    
    
    /// <summary>
    ///This is a test class for PrepareStringForSearchExtTest and is intended
    ///to contain all PrepareStringForSearchExtTest Unit Tests
    ///</summary>
    [TestClass()]
    public class PrepareStringForSearchExtTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for GetSearchTypes
        ///</summary>
        [TestMethod()]
        public void GetSearchTypesTest()
        {
            SearchTypeContainer[] container = null; // TODO: Initialize to an appropriate value
            List<SearchSource> expected = null; // TODO: Initialize to an appropriate value
            List<SearchSource> actual;
            actual = PrepareStringForSearchExt.GetSearchTypes(container);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetSourcesPreparedForSearch
        ///</summary>
        [TestMethod()]
        public void GetSourcesPreparedForSearchTest()
        {
            SearchTypeContainer[] container = null; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = PrepareStringForSearchExt.GetSourcesPreparedForSearch(container);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for IsPositiveInteger
        ///</summary>
        [TestMethod()]
        [DeploymentItem("LinqToBing.Bing.Wrapper.dll")]
        public void IsPositiveIntegerTest()
        {
            Nullable<int> value = new Nullable<int>(); // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = PrepareStringForSearchExt_Accessor.IsPositiveInteger(value);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for PrepareStringForSearch
        ///</summary>
        [TestMethod()]
        public void PrepareStringForSearchTest()
        {
            List<SearchSource> Searches = null; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = PrepareStringForSearchExt.PrepareStringForSearch(Searches);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for PrepareStringForSearch
        ///</summary>
        [TestMethod()]
        public void PrepareStringForSearchTest1()
        {
            SearchSource[] Searches = null; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = PrepareStringForSearchExt.PrepareStringForSearch(Searches);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for PrepareStringForSearch
        ///</summary>
        [TestMethod()]
        public void PrepareStringForSearchTest2()
        {
            string[] Texts = null; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = PrepareStringForSearchExt.PrepareStringForSearch(Texts);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for PrepareStringForSearch
        ///</summary>
        [TestMethod()]
        public void PrepareStringForSearchTest3()
        {
            object obj = null; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = PrepareStringForSearchExt.PrepareStringForSearch(obj);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for PrepareStringForSearch
        ///</summary>
        [TestMethod()]
        public void PrepareStringForSearchTest4()
        {
            string Text = string.Empty; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = PrepareStringForSearchExt.PrepareStringForSearch(Text);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for PrepareStringForSearch
        ///</summary>
        [TestMethod()]
        public void PrepareStringForSearchTest5()
        {
            SearchTypeContainer[] container = null; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = PrepareStringForSearchExt.PrepareStringForSearch(container);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for TryToAppend
        ///</summary>
        [TestMethod()]
        [DeploymentItem("LinqToBing.Bing.Wrapper.dll")]
        public void TryToAppendTest()
        {
            StringBuilder sb = null; // TODO: Initialize to an appropriate value
            Nullable<int> value = new Nullable<int>(); // TODO: Initialize to an appropriate value
            StringBuilder expected = null; // TODO: Initialize to an appropriate value
            StringBuilder actual;
            actual = PrepareStringForSearchExt_Accessor.TryToAppend(sb, value);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
